home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / DATABASE / FOXRYAN.ZIP / VERIFY6.PRG < prev    next >
Text File  |  1993-07-11  |  644b  |  36 lines

  1. m.today = {07/09/93}
  2. m.i = 1
  3. m.form = "form" + alltrim(str(m.i))
  4. m.newdb = m.form + ".dbf"
  5. m.olddb = "b:" + m.newdb
  6. select 0
  7. use &newdb alias newdata
  8. delete for .T.
  9. pack
  10. select 0
  11. use &olddb alias olddata noupdate
  12. go top
  13. scan
  14.     scatter memvar memo
  15.     if m.i = 1
  16.         m.passzone = m.parkinglot
  17.     endif
  18.     select newdata
  19.     append blank
  20.     gather memvar memo
  21.     select facility
  22.     go top
  23.     locate for facility.facility=olddata.facility
  24.     if eof()
  25.         insert into facility (company, facility) values ("Company", olddata.facility)
  26.     endif
  27.     select olddata
  28. endscan
  29. * Invariant: olddata is the current database.
  30. use
  31. select newdata
  32. use
  33.  
  34.     
  35.  
  36.